﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.ServerVariables["REQUEST_METHOD"] == "POST")
            {
                string userName = Request.Params["Textbox1"];
                string password = Request.Params["Textbox2"];
                Response.Write($"Post---欢迎你,{userName},你的密码是{password}");
            }
            if (Request.ServerVariables["REQUEST_METHOD"] == "GET")
            {
                string userName1 = Request.Params["n"];
                string password2 = Request.Params["p"];
                Response.Write($"Get---欢迎你,{userName1},你的密码是{password2}");
            }           
        }
    }
}